package com.hurl.waguji.biz.download;

import java.util.Date;

import com.hurl.library.spider.SpiderException;
import com.hurl.waguji.base.dataprocess.ProcessParams;

abstract class BaseDownloadForUpdateProcessor extends BaseDownloadProcessor {

	protected Date currentTime = new Date();
	public BaseDownloadForUpdateProcessor(ProcessParams params,DownloadIdentifier identifier) {
		super(params, identifier);
		context.setBoSaveMode(DownloadContext.BO_SAVE_MODE_UPDATE);
	}

	@Override
	public void downloadFailure(String url, Throwable e) throws SpiderException {

	}

	@Override
	public Date getRq() {
		return context.getParams().getRq();
	}

	@Override
	public void validate() throws Throwable {

	}

	@Override
	public void shutdown(boolean success, Throwable t) {
	}
}
